
#ifndef _NET_COMMON_H_
#define _NET_COMMON_H_


#include "macro.h"
#ifdef WIN32

#else
#define SOCKET_ERROR -1
typedef unsigned int SOCKET;
#endif

typedef int PORT;

#define MIN_PORT 1024
#define MAX_PORT 49151

#define SOCKET_INVALID -1
#define IP_LEN 64

#define MSG_NOSIGNAL	0

#endif